<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{hyfxForm.bundleName}"/>
    <head>
        <title>#{text['hyfxDetail.title']}</title>
        <meta name="heading" content="#{text['hyfxDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="hyfxForm">

<h:form id="hyfxForm" onsubmit="return validateHyfxForm(this)">
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="id" value="#{text['hyfx.id']}"/>
    <h:inputText styleClass="text medium" id="id" value="#{hyfxForm.hyfx.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['hyfx.id']}"/>
    </h:inputText>
    <t:message for="id" styleClass="fieldError"/>
    <!-- todo: change this to read the identifier field from the other pojo -->
    <h:selectOneMenu value="#{hyfxForm.hyfx.hyfl}" id="hyfl" required="false" styleClass="select">
        <f:selectItems value="#{hyfxForm.hyfx.hyfl}"/>
    </h:selectOneMenu>
    <h:outputLabel styleClass="desc" for="hyfzfx" value="#{text['hyfx.hyfzfx']}"/>
    <t:message for="hyfzfx" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="hyfzfx" value="#{hyfxForm.hyfx.hyfzfx}" required="false" maxlength="1024">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="hyjjhyhj" value="#{text['hyfx.hyjjhyhj']}"/>
    <t:message for="hyjjhyhj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="hyjjhyhj" value="#{hyfxForm.hyfx.hyjjhyhj}" required="false" maxlength="1024">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="hyjyqkfx" value="#{text['hyfx.hyjyqkfx']}"/>
    <t:message for="hyjyqkfx" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="hyjyqkfx" value="#{hyfxForm.hyfx.hyjyqkfx}" required="false" maxlength="1024">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="hytzfxfx" value="#{text['hyfx.hytzfxfx']}"/>
    <t:message for="hytzfxfx" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="hytzfxfx" value="#{hyfxForm.hyfx.hytzfxfx}" required="false" maxlength="1024">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="hyxgfx" value="#{text['hyfx.hyxgfx']}"/>
    <t:message for="hyxgfx" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="hyxgfx" value="#{hyfxForm.hyfx.hyxgfx}" required="false" maxlength="1024">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="nj" value="#{text['hyfx.nj']}"/>
    <t:message for="nj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="nj" value="#{hyfxForm.hyfx.nj}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="operation" value="#{text['hyfx.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{hyfxForm.hyfx.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['hyfx.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{hyfxForm.hyfx.optdate}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['hyfx.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{hyfxForm.hyfx.username}" required="false" maxlength="50">
    </h:inputText>

    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{hyfxForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty hyfxForm.hyfx.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{hyfxForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Hyfx')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateHyfxForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('hyfxForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
